package cn.cimoc.mapper;

import cn.cimoc.pojo.Hero;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


@Repository
public interface HeroMapper {

    void insert(@Param("data")Hero data);

    int findByName(@Param("name")String name);

    Hero[] selectAll();

    void deleteById(@Param("id")Long id);

    void update(@Param("data")Hero data);



}
